package com.hello.factory;

public class client {

    public static void main(String[] args) {
        Fruit f = Factory.getInstance("com.hello.factory.Apple");
        if (f != null) {
            f.eat();
        }
    }
}
